<!-- 设备管理列表 -->
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
		<meta http-equiv="Cache-Control" content="no-cache/no-store" />
<!--[if IE 9]>
<script type="text/javascript" src="lib/html5shiv.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<![endif]-->
<link rel="stylesheet" type="text/css" href="static/h-ui/css/H-ui.min.css" />
<link rel="stylesheet" type="text/css" href="static/h-ui/css/icheck.css" />
<link rel="stylesheet" type="text/css" href="static/h-ui.admin/css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css" href="lib/Hui-iconfont/1.0.8/iconfont.css" />
<link rel="stylesheet" type="text/css" href="static/h-ui.admin/skin/default/skin.css" id="skin" />
<link rel="stylesheet" type="text/css" href="static/h-ui.admin/css/style.css" />
<!-- easyui -->
<link rel="stylesheet" href="html/createOrder/jquery/easyui/themes/default/easyui.css">
<link rel="stylesheet" href="html/createOrder/jquery/easyui/themes/icon.css">

<!--[if IE 6]>
<script type="text/javascript" src="lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<style>
div{
	width:200px;
	border:1px solid red;
	float:left;
}
</style>
<title>设备管理列表 </title>
</head>
<body>


<div>
设备申请
	<form action="/weixin/workOrder/addApplyWorkOrder">
		设备id:二维码上id:<input type="text" name="machineId"/><br>
		用户故障部件:<input type="text" name="custBrokenPart"/><br>
		用户故障描述:<input type="text" name="custBrokenDescription"/><br>
		用户故障图片:<input type="text" name="custPhoto"/><br>
		用户电话:<input type="text" name="custPhone"/><br>
		用户地址:<input type="text" name="custAddress"/><br>
		<input type="submit" value="submit" />
	</form>
</div>


<div>
指派技工
	<form action="/weixin/workOrder/updateWorkOrderWorkName">
		申请id:推送到维修主管的URl上id:<input type="text" name="id"/><br>
		技工:<input type="text" name="workName"/><br>
		<input type="submit" value="submit" />
	</form>
</div>


<div>
设备维修
	<form action="/weixin/workOrder/updateWorkOrderWorkRepaireInfo">
		申请id:技工扫码通过设备id查询发起详情查询/weixin/workOrder/getApplyWorkOrderByMachineIddata: {machineId:id}返回的id:
        <input type="text" name="id"/><br>
		技工故障部件:<input type="text" name="workBrokenPart"/><br>
		技工故障描述:<input type="text" name="workBrokenDescription"/><br>
		技工解决方案:<input type="text" name="workBrokenSolveWay"/><br>
		<input type="submit" value="submit" />
	</form>
</div>


<div>
设备维修评价
	<form action="/weixin/workOrder/updateWorkOrderCustEvaluation">
		申请id:url上的id微信推送过来:<input type="text" name="id"/><br>
		用户评价:<input type="text" name="custEvaluation"/><br>
		是否收费: <select name="custPay">
					<option value="1">是</option>
					<option value="0">否</option>
				</select>
		用户意见:<input type="text" name="custOpinion"/><br>
		<input type="submit" value="submit" />
	</form>
</div>


<div>
工单申请信息
	<input type="button" value="更新工单申请信息通过设备id" onclick="updateInfo()"><br>	
	<input type="button" value="更新工单申请信息通过申请id" onclick="updateInfoByApply()"><br>	
	<form id="info" >
	      设备id<input type="text" name="machineId"/><br>
	      申请id<input type="text" name="id"/><br>
	      申请状态 <select name="status" type="select-one">
	      		<option value="-99">请选择</option>
	      		<option value="-2">退回</option>
	      		<option value="-1">待处理</option>
	      		<option value=0>处理中</option>
	      		<option value="1">处理完毕</option>
	      		<option value="2">评价完毕</option>
	      </select><br>
		设备型号<input type="text" name="machineModel"/><br>
		设备编号<input type="text" name="machineSerialNo"/><br>
		技工厂家<input type="text" name="workCompany"/><br>
		报修人厂家<input type="text" name="custCompany"/><br>
		报修人<input type="text" name="custName"/><br>
		报修人联系电话<input type="text" name="custPhone"/><br>
		用户故障部件:<input type="text" name="custBrokenPart"/><br>
		用户故障描述:<input type="text" name="custBrokenDescription"/><br>
		用户故障图片:<input type="text" name="custPhoto"/><br>
		技工:<input type="text" name="workName"/><br>
		技工主管:<input type="text" name="workManagerName"/><br>
		技工故障部件:<input type="text" name="workBrokenPart"/><br>
		技工故障描述:<input type="text" name="workBrokenDescription"/><br>
		技工解决方案:<input type="text" name="workBrokenSolveWay"/><br>
		用户评价:<input type="text" name="custEvaluation"/><br>
		是否收费:<input type="text" name="custPay"/><br>
		用户意见:<input type="text" name="custOpinion"/><br>
	</form>
</div>

<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="https://upload.shinehao.com.cn/20180810145355jquery.min1.9.1.js"></script> 
<script type="text/javascript" src="lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="https://upload.shinehao.com.cn/20180810150731H-ui.min3.0.2.js"></script> 
<script type="text/javascript" src="static/h-ui/js/jquery.icheck.min.js"></script> 
<script type="text/javascript" src="https://upload.shinehao.com.cn/20180813175723jquery.dataTables1.10.0.js"></script>
<script type="text/javascript" src="lib/datatables/1.10.0/dataTables.fixedColumns.min.js"></script>
<!-- easyui -->
<script src="https://upload.shinehao.com.cn/20180816145716jquery.easyui.min.js"></script>
<script src="https://upload.shinehao.com.cn/20180816151727easyui-lang-zh_CN.js"></script>
<scirpt src="html/createOrder/jquery/jquery.form.min.js"></scirpt>
<script src="html/createOrder/jquery/jquery.formFill.js"></script>
<!--/_footer 作为公共模版分离出去-->

<!--请在下方写此页面业务相关的脚本-->
<script src="js/plugin/jquery/jquery.qrcode.min.js"></script>
<script type="text/javascript" src="lib/My97DatePicker/4.8/WdatePicker.js"></script> 
<script type="text/javascript" src="lib/laypage/1.2/laypage.js"></script>
<script type="text/javascript" src="https://upload.shinehao.com.cn/20180810172341echarts.common.min3.4.0.js"></script>
<script type="text/javascript" src="myJs/echartUtil.js"></script>
<script type="text/javascript" src="myJs/util.js"></script>

<script>
/*地址栏获取参数*/
function getQueryString(name) { 
    var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); 
    var r = decodeURI(window.location.search).substr(1).match(reg); 
    if (r != null) return unescape(r[2]); return null; 
} 
function updateInfo(){
	$.ajax({
        type: 'POST',
        url: "/weixin/workOrder/getApplyWorkOrderByMachineId",
        data: {machineId:id},
        success: function(data){
         	$("#info").fill(data.data)
        },
        dataType: "json"
      });
}
function updateInfoByApply(){
	$.ajax({
        type: 'POST',
        url: "/weixin/workOrder/getApplyWorkOrderById",
        data: {id:6},
        success: function(data){
         	$("#info").fill(data.data)
        },
        dataType: "json"
      });
}
var id;
$(function(){
	id=getQueryString("id");
})
</script>





</body>
</html>